#include <stdio.h>
#include <string.h>
#define buffsize 100000
int bla=0;
int load(void);

int main(int argc, char **argv){
FILE *fptr;
char buff[buffsize], ch, key[256];
int i, n=0;
if (argc==1){
 printf("Usage: lala <file> <key(optional)> options\n");
 return 0;}
else{
fptr=fopen(argv[1], "rb");
if (fptr==NULL){printf("Can't open %s\n", argv[1]);return 0;}
}
if ((argv[2]) == NULL)
 printf("Compress only\n");
printf("reading file... x");
n=0;
while(ch != EOF || n>buffsize){
ch = getc(fptr);
buff[n]=ch;
load();n++;}
fclose(fptr);
if (argv[3] == "v")
printf("\n%s", buff);





return 0;
}


int load(){
switch (bla)
{
case 0:
printf("\b|"); break;
case 1:
printf("\b/"); break;
case 2:
printf("\b-"); break;
case 3:
{printf("\b\\"); bla=-1;}
}
bla++;
}
